/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    position: relative;
    min-height: 100vh;
}

/* 背景样式 - 使用图片 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    filter: brightness(0.7);
}

.player-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: rgba(30, 30, 47, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* 封面样式 */
.cover-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

#cover:hover {
    transform: scale(1.03);
}

/* 歌曲信息样式 */
.song-info {
    text-align: center;
    margin-bottom: 20px;
}

#song-title {
    font-size: 24px;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#artist {
    font-size: 16px;
    margin: 5px 0 0;
    color: #aaa;
}

/* 进度条样式 */
.progress-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

#progress {
    flex-grow: 1;
    margin: 0 10px;
    height: 6px;
    border-radius: 3px;
    background: #555;
    outline: none;
    appearance: none;
}

#progress::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4a80f0;
    cursor: pointer;
    transition: all 0.2s;
}

#progress::-webkit-slider-thumb:hover {
    background: #3a70e0;
    transform: scale(1.1);
}

#progress::-moz-range-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4a80f0;
    cursor: pointer;
}

#current-time, #duration {
    font-size: 14px;
    color: #aaa;
    min-width: 40px;
}

/* 歌词容器样式 */
.lyrics-container {
    height: 200px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#lyrics {
    font-size: 16px;
    line-height: 2;
    color: #ddd;
}

/* 高亮当前歌词 */
#lyrics .current {
    color: #4a80f0;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(74, 128, 240, 0.5);
}

/* 控制按钮样式 */
.controls {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 15px;
}

button {
    background-color: #4a80f0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 80px;
}

button:hover {
    background-color: #3a70e0;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(1px);
}

/* 音量控制样式 */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.volume-control span {
    margin-right: 10px;
    color: #aaa;
    font-size: 14px;
}

#volume {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: #555;
    outline: none;
    appearance: none;
}

#volume::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4a80f0;
    cursor: pointer;
}

#volume::-moz-range-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4a80f0;
    cursor: pointer;
}

/* 播放列表样式 */
.playlist-container {
    margin-top: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-container {
    margin-bottom: 15px;
}

#search {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    font-size: 14px;
}

#search::placeholder {
    color: #aaa;
}

#playlist {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}

#playlist li {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

#playlist li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

#playlist li.playing {
    background-color: rgba(74, 128, 240, 0.3);
    color: #4a80f0;
    border-left: 3px solid #4a80f0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .player-container {
        margin: 10px;
        padding: 20px;
    }
    
    .cover-container {
        width: 200px;
        height: 200px;
    }
    
    .controls {
        gap: 10px;
    }
    
    button {
        padding: 10px 15px;
        font-size: 14px;
    }
}